Skip to content

Never-reducing intersections are not untyped function call targets #42917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

andrewbranch
Copy link
Member

Fixes #42859

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Feb 22, 2021
@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Feb 23, 2021

If I understand correctly, this is technically a breaking change that moves a noImplicitAny error to an always-error on never.

@DanielRosenwasser
Copy link
Member

I guess it's probably more accurate to say that this is a bug fix to the never-originating intersections break.

@andrewbranch andrewbranch merged commit 56cf2e6 into microsoft:master Feb 24, 2021
@andrewbranch andrewbranch deleted the bug/42859 branch February 24, 2021 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It's possible to create a callable never
4 participants